home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / program / nxdv99_3.zip / NEXECUTE.DOC < prev    next >
Text File  |  1996-06-19  |  15KB  |  474 lines

  1.                 Nexus (tm) - Next Epoch matrix User System (tm)
  2.                      Nexecutable Language Quick Reference
  3.  
  4.     All material contained herein is (c) Copyright 1995-96 Intuitive Vision
  5.                         Software.  All Rights Reserved.
  6. ------------------------------------------------------------------------------
  7.  
  8.  
  9.                             QUICK REFERENCE TABLE
  10.                             ---------------------
  11.  
  12.   COMMAND                    EXAMPLE
  13.   -------------------------------------------------------------
  14.   CLS                        CLS
  15.  
  16.   DELAY                      DELAY 3000
  17.  
  18.   DISPLAYFILE                DISPLAYFILE "C:\NEXUS\NEW.ANS"
  19.  
  20.   DOOR                       DOOR 1
  21.  
  22.   FILECREATE                 FILECREATE 1, "C:\TEST.TXT"
  23.  
  24.   FILEOPEN                   FILEOPEN 1, "C:\TEST.TXT"
  25.  
  26.   FILEPUT                    FILEPUT 1, "Testing..."
  27.  
  28.   FILEPUTLN                  FILEPUTLN 1, "Testing..."
  29.  
  30.   FILECLOSE                  FILECLOSE 1
  31.  
  32.   GOTOXY                     GOTOXY 1,1
  33.  
  34.   HALT                       HALT
  35.  
  36.   IF FILEERR(x)              IF FILEERR(1)
  37.   [ELSE]                          HALT
  38.   ENDIF                      ENDIF
  39.  
  40.  
  41.   IF FILEEXIST               IF FILEEXIST "C:\AUTOEXEC.BAT"
  42.   [ELSE]                     ENDIF
  43.   ENDIF
  44.  
  45.   IF YN                      IF YN "Continue? "
  46.   [ELSE]                     ENDIF
  47.   ENDIF
  48.  
  49.   IF NY                      IF NY "Continue? "
  50.   [ELSE]                     ENDIF
  51.   ENDIF
  52.  
  53.   MENU                       MENU 12, "This is a string."
  54.  
  55.   PROMPT                     PROMPT "Hello there"
  56.  
  57.   PRINT                      PRINT "Hello there"
  58.  
  59.   SUBSCRIPT                  SUBSCRIPT 1
  60.  
  61.   VAR                        VAR STRING MYSTRING "Test String"
  62.  
  63.  
  64.                              COMMAND DESCRIPTIONS
  65.                              --------------------
  66.  
  67.  
  68. CLS
  69.  
  70.         Syntax      :   CLS
  71.  
  72.         Description :   Clears both the remote and local screens
  73.  
  74.         Example     :   CLS
  75.  
  76.  
  77.  
  78. DELAY
  79.  
  80.         Syntax      :   DELAY #ofMilliseconds
  81.  
  82.         Description :   Delays the program's execution for a specified
  83.                         number of milliseconds.
  84.  
  85.         Example     :   DELAY 3000 (would delay for 3 seconds)
  86.  
  87.  
  88. DISPLAYFILE
  89.  
  90.         Syntax      :   DISPLAYFILE "filename"
  91.  
  92.         Description :   Displays a display file.  This command follows the
  93.                         same usage as Nexus's menu commands, etc.  It will
  94.                         display the correct file for the emulation if no
  95.                         extention is given.  If a complete path is not
  96.                         specified, it will attempt to find it in the DISPLAY
  97.                         path.  Random files, day numbered files, etc. may
  98.                         be used as well, provided no extention is specified.
  99.  
  100.         Example     :   DISPLAYFILE "NEWUSER"
  101.  
  102.  
  103.  
  104. DOOR
  105.  
  106.         Syntax      :   DOOR door#
  107.  
  108.         Description :   Runs the specified door number
  109.  
  110.         Example     :   DOOR 3
  111.  
  112.  
  113. FILECREATE
  114.  
  115.         Syntax      :   FILECREATE filehandle, "filename"
  116.  
  117.         Description :   Creates a text file using filehandle as "filename".
  118.                         This will erase a file if it already exists.
  119.                         If the file cannot be created (due to a bad filename,
  120.                         non-existant path, etc) the fileerror will be set
  121.                         for this filehandle.  You should check FILEERR() for
  122.                         the filehandle after this call.
  123.  
  124.         Example     :   FILECREATE 1, "C:\TEST.TXT"
  125.  
  126.  
  127. FILEOPEN
  128.  
  129.         Syntax      :   FILEOPEN filehandle, "filename"
  130.  
  131.         Description :   Opens an existing text file.  If the file cannot be
  132.                         created (due to a bad filename, non-existant path,
  133.                         etc) the fileerror will be set for this filehandle.
  134.                         You should check FILEERR() for the filehandle after
  135.                         this call.
  136.  
  137.                         If the file exists, the current file position will
  138.                         be placed at the end of the file so as to facilitate
  139.                         appending to the file.
  140.  
  141.         Example     :   FILEOPEN 1, "C:\TEST.TXT"
  142.  
  143.  
  144. FILEPUT
  145.  
  146.         Syntax      :   FILEPUT filehandle, "string"
  147.  
  148.         Description :   This will write a string to the text file.  The file
  149.                         must be opened with either FILECREATE or FILEOPEN
  150.                         first.  This comand will NOT place a CR/LF sequence
  151.                         at the end of the string.
  152.  
  153.         Example     :   FILEPUT 1, "Testing..."
  154.  
  155.  
  156. FILEPUTLN
  157.  
  158.         Syntax      :   FILEPUTLN filehandle, "string"
  159.  
  160.         Description :   This will write a string to the text file.  The file
  161.                         must be opened with either FILECREATE or FILEOPEN
  162.                         first.  This comand will place a CR/LF sequence
  163.                         at the end of the string.
  164.  
  165.         Example     :   FILEPUTLN 1, "Testing..."
  166.  
  167.  
  168. FILECLOSE
  169.  
  170.         Syntax      :   FILECLOSE filehandle
  171.  
  172.         Description :   This will close an open file.  The file must have
  173.                         been opened prior to this call.
  174.  
  175.         Example     :   FILECLOSE 1
  176.  
  177.  
  178. GOTOXY
  179.  
  180.         Syntax      :   GOTOXY x,y
  181.  
  182.         Description :   ANSI MODE ONLY -- Will position the cursor on both
  183.                         the local and remote screens to the specified x and
  184.                         y coordinates (x=1..80, y=1..24)
  185.  
  186.         Example     :   GOTOXY 1,1
  187.  
  188.  
  189. HALT
  190.  
  191.         Syntax      :   HALT
  192.  
  193.         Description :   Terminates nexecutable execution
  194.  
  195.         Example     :   HALT
  196.  
  197.  
  198. IF FILEERR()
  199.  
  200.         Syntax      :   IF FILEERR(filehandle)
  201.                                 [command]
  202.                                 .
  203.                                 .
  204.                                 [command]
  205.                         [ELSE]
  206.                                 [command]
  207.                                 .
  208.                                 .
  209.                                 [command]
  210.                         ENDIF
  211.  
  212.         Description :   This will test the current fileerror status for the
  213.                         specified filehandle.  This is useful after
  214.                         attempting to open a file with FILEOPEN or create a
  215.                         file with FILECREATE to check to see if it was
  216.                         successful.
  217.  
  218.         Example     :   FILEOPEN 1, "C:\TEST.TXT"
  219.                         IF FILEERR(1)
  220.                                 PRINT "Error opening file!"
  221.                                 HALT
  222.                         ENDIF
  223.  
  224.  
  225. IF FILEEXIST ..
  226.  
  227.         Syntax      :   IF FILEEXIST "[filename]"
  228.                                 [command]
  229.                                 .
  230.                                 .
  231.                                 [command]
  232.                         [ELSE]
  233.                                 [command]
  234.                                 .
  235.                                 .
  236.                                 [command]
  237.                         ENDIF
  238.  
  239.         Description :   This is an IF statement that bases its result (TRUE
  240.                         or FALSE) on whether the specified filename exists.
  241.  
  242.         Example     :   IF FILEEXIST "C:\AUTOEXEC.BAT"
  243.                                 PRINT "AUTOEXEC.BAT exists!"
  244.                         ELSE
  245.                                 PRINT "AUTOEXEC.BAT is MISSING!!!"
  246.                         ENDIF
  247.  
  248.  
  249. IF YN ..
  250.  
  251.         Syntax      :   IF YN "[prompt]"
  252.                                 [command]
  253.                                 .
  254.                                 .
  255.                                 [command]
  256.                         [ELSE]
  257.                                 [command]
  258.                                 .
  259.                                 .
  260.                                 [command]
  261.                         ENDIF
  262.  
  263.         Description :   This is an IF statement that bases its result on
  264.                         the user's